Skip to content

UFAL/download-bitstreams-as-separated-api-calling#969

Merged
milanmajchrak merged 7 commits intodtq-devfrom
fix/bitstream-downloading-missing-repository-prefix
Sep 25, 2025
Merged

UFAL/download-bitstreams-as-separated-api-calling#969
milanmajchrak merged 7 commits intodtq-devfrom
fix/bitstream-downloading-missing-repository-prefix

Conversation

@Paurikova2
Copy link
Copy Markdown
Collaborator

@Paurikova2 Paurikova2 commented Sep 9, 2025

Phases MP MM MB MR JM Total
ETA 0.5 0 0 0 0 0
Developing 1 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem description

When a bitstream is downloaded by name (e.g., https://dev-5.pc:8443/repository/bitstream/123456789/2-5947/0/test.txt), it redirects to https://dev-5.pc:8443/bitstreams/525188bc-7d2e-4ed6-a6d7-1a4b031b67b7/download, but the /repository prefix is missing in the redirected URL.

Summary by CodeRabbit

  • Bug Fixes

    • Legacy bitstream links now redirect correctly when a UI namespace is configured, preventing broken downloads.
    • Redirects use a permanent (301) redirect to improve bookmarking and SEO.
    • Falls back to a not-found page when the target bitstream cannot be resolved.
  • New Features

    • Namespace-aware redirect behavior that sanitizes configured namespaces to avoid malformed redirects.
    • Multi-file curl download support using shell brace expansion to fetch individual bitstreams with remote filenames.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix/missing-repository-prefix-for-bitstream-downloading UFAL/Download files using command line - now it is downloading all files as ZIP

4 participants